﻿using UnityEngine;
using System.Collections;

public class electro : MonoBehaviour {

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}

	void OnTriggerStay(Collider obj)
	{
		if(obj.CompareTag("Player1"))
		{
			Debug.Log("Muerto Por Electricidad");
			GameObject.FindWithTag("GameManager").GetComponent<gameManager>().morir();

		}
	}
}
